<template>
角色名字：{{ character.name }}
年龄：{{ character.age }}
法力值：{{ character.mana }}
</template>

<script setup>
import {ref, reactive } from 'vue'
const character=reactive({
    name:'敖丙',
    age:3,
    mana:1000 
})
setTimeout(()=>{
    character.mana=character.mana+500

},2000)

</script>

<style>
</style>